import { Game } from '@/types/game';
import { User } from './user';

export interface UserOrder {
  id: number;
  userId: string;
  number: string;
  name: string;
  amount: number;
  orderTime: string;
  payTime: string;
  payType: string;
  status: number;
  refundStatus: number;
  refundStartTime: string;
  refundEndTime: string;
  payUrl: string;
  business: number;
  gmtCreate: string;
  gmtUpdate: string;

  user?: User;
  game?: Game;
}

export interface UserOrderSearchParams {
  number?: string;
  business?: number;
  gmtCreateSpan?: string;
  gmtCreateRange?: string[];
  userId?: string;
  refundStatus?: string;
}
